// 封装localstoraget中搜索历史功能
export const setHistory = (historyObj) => {
  return localStorage.setItem('historyStr', JSON.stringify(historyObj))
}
export const getHistory = () => {
  return JSON.parse(localStorage.getItem('historyStr'))
}
export const removeHistory = () => {
  localStorage.removeItem('historyStr')
}
